package com.cqhfan.pojo.content.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cqhfan.core.enums.AllowCommentTypeEnum;
import com.cqhfan.core.enums.AllowForwardTypeEnum;
import com.cqhfan.core.enums.WatchTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 眭传洪
 * @create 2025-07-31 23:56
 * @desc 作品表
 */
@Data
@TableName("works")
public class Works {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    // 标题
    private String title;

    // 内容
    private String description;

    // 作者
    private Long author;

    // 点赞数量
    private Integer likeQuantity;

    // 评论数
    private Integer commentQuantity;

    // 收藏数
    private Integer collectQuantity;

    // 转发数
    private Integer forwardQuantity;

    // 话题
    private String topic;

    // 封面
    private String cover;

    // 允许评论类型
    private AllowCommentTypeEnum allowCommentType;

    // 允许转发类型
    private AllowForwardTypeEnum allowForwardType;

    // 可查看类型
    private WatchTypeEnum watchType;

    // 发布时间
    private LocalDateTime publishTime;

    // 浏览量
    private Long browseCount;

    // 是否允许显示
    @TableField("if_show")
    private Boolean ifSHow;

}
